package com.ygl.eurekaclientorder.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author： ygl
 * @date： 2019/01/21
 * @Description：
 * feign方式调用接口
 *  name: 就是调用的服务的服务名称
 */
//@FeignClient(name = "client-member")
// feign客户端熔断
@FeignClient(name = "client-member",fallback = MemberApiFeignHystrix.class)
public interface MemberApiFeign {

    @GetMapping("/getMember")
    public String getMember();

    @GetMapping("/getMemberTimeOut")
    public String getMemberTimeOut();
}
